package com.wicket.okrbff.biz.service.dto.common;

import com.wicket.okrbff.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffPerOrgInductionRecordDto
 * @使用场景
 */
@Data
public class BffPerOrgInductionRecordDto
        extends PagedDto
        implements Serializable {

    /**
     * 就职记录ID:
     */
    @ApiModelProperty("就职记录ID")
    private String inductionRecordId;

    /**
     * 身份人员ID:
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 身份人员编号:
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 账号:
     */
    @ApiModelProperty("账号")
    private String userId;

    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 职务信息展示:
     */
    @ApiModelProperty("职务信息展示")
    private String positionIdName;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffPerOrgInductionRecordDto that = (BffPerOrgInductionRecordDto) o;
      return  inductionRecordId == that.inductionRecordId&&originalRoleMemberId == that.originalRoleMemberId&&roleMemberCode == that.roleMemberCode&&userId == that.userId&&userFace == that.userFace&&idCardName == that.idCardName&&nickName == that.nickName&&positionIdName == that.positionIdName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), inductionRecordId,originalRoleMemberId,roleMemberCode,userId,userFace,idCardName,nickName,positionIdName);
    }

}
